<html><head><title>SliderJoint</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SliderJoint()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>SliderJoint</b></font>(#Joint, EntityID, TransformX, TransformY, TransformZ, EntityID2, TransformX2, TransformY2, TransformZ2)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Create a new slider joint between the two given entities. Slider can be used to move an entity with constraint on 
a plane surface, etc. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Joint</i></td>
<td width="90%"> 
The number to identify the new joint. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

</td></tr>
<tr><td><i>EntityID</i></td>
<td> 
The first entity id associated to the joint. To get a valid entity id, use <a href="../entity/entityid.html">EntityID()</a>. 

</td></tr>
<tr><td><i>TransformX</i></td>
<td> 
The X value of the transformation for the first entity. 

</td></tr>
<tr><td><i>TransformY</i></td>
<td> 
The Y value of the transformation for the first entity. 

</td></tr>
<tr><td><i>TransformZ</i></td>
<td> 
The Z value of the transformation for the first entity. 

</td></tr>
<tr><td><i>EntityID2</i></td>
<td> 
The second entity used to create the joint. To get a valid entity id, use <a href="../entity/entityid.html">EntityID()</a>. 

</td></tr>
<tr><td><i>TransformX2</i></td>
<td> 
The X value of the transformation for the second entity. 

</td></tr>
<tr><td><i>TransformY2</i></td>
<td> 
The Y value of the transformation for the second entity. 

</td></tr>
<tr><td><i>TransformZ2</i></td>
<td> 
The Z value of the transformation for the second entity. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns zero if the joint can't be created. If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as '#Joint' parameter, the new joint number will be returned as 'Result'. 

</blockquote><p><b>Remarks</b></p><blockquote>

<a href="getjointattribute.html">GetJointAttribute()</a> and <a href="setjointattribute.html">SetJointAttribute()</a> can be used with the following attribute to change the joint behavior: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_SliderJoint_LowerLimit</font> : Lower limit of the joint
  <font color="#924B72">#PB_SliderJoint_UpperLimit</font> : Upper limit of the joint
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="freejoint.html">FreeJoint()</a>, <a href="getjointattribute.html">GetJointAttribute()</a>, <a href="setjointattribute.html">SetJointAttribute()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=setjointattribute.html>SetJointAttribute()</a> - <a href=index.html>Joint Index</a>

</body></html>